package com.ht.utils;

public class DicConstants {
    //——————————————————————————登录相关start——————————————————————————————————————————
    /**
     * 时间段内限制登录次数
     */
    public static final Integer FREQUENCY_TIMES = 3;
    /**
     * 连续登陆时长界定（1分钟）
     */
    public static final long CONTINUITY_TM = 1;
    /**
     * 封锁时长（10分钟）
     */
    public static final long BLOCK_TM = 10;
    /**
     * 登录失败缓存标识
     */
    public static final String PREFIX_LOGIN_BLOCK = "LOGIN:FAILED:";
    /**
     * 登录失败时间
     */
    public static final String AUTH_EXPIRED_TIME = "TOKENS::AUTH_EXPIRED_TIME";
    //——————————————————————————登录相关end——————————————————————————————————————————
    /**
     * 删除标记-0-未删除
     */
    public static final String DEL_FLAG_WSC = "0";
    /**
     * 删除标记-1-已删除
     */
    public static final String DEL_FLAG_YSC = "1";

    /**
     * 用户角色-admin-超级管理员
     */
    public static final String USER_ROLE_ADMIN = "admin";

    /**
     * 是否状态-0-否
     */
    public static final String WHETHER_FOU = "0";
    /**
     * 是否状态-1-是
     */
    public static final String WHETHER_SHI = "1";

    /**
     * 部门级别-1-一级
     */
    public static final String DEPART_ORG_TYPE_1 = "1";
    /**
     * 部门级别-2-二级
     */
    public static final String DEPART_ORG_TYPE_2 = "2";
    /**
     * 部门级别-3-三级
     */
    public static final String DEPART_ORG_TYPE_3 = "3";

    /**
     * 登录时密码错误次数存放Redis前缀-LOGIN_ERROR_TIME
     */
    public static final String LOGIN_ERROR_TIME = "LOGIN_ERROR_TIME";

    /**
     * 登录异常状态-1-已封禁
     */
    public static final String LOGIN_BANNED_STATE_YFJ = "1";
    /**
     * 登录异常状态-2-已解封
     */
    public static final String LOGIN_BANNED_STATE_YJF = "2";

    /**
     * 用户账号状态-1-正常
     */
    public static final Integer SYSUSER_STATUS_NORMAL = 1;
    /**
     * 用户账号状态-2-冻结
     */
    public static final Integer SYSUSER_STATUS_FROZEN = 2;

    // 正常or异常
    public static final String IS_NORMAL_NORMAL = "1";
    public static final String IS_NORMAL_ABNORMAL = "2";

}
